
class ChangeTimeToDatetimeForOrders < ActiveRecord::Migration[5.0]
  def change
    remove_column :orders, :created_at
    remove_column :orders, :updated_at
    remove_column :orders, :payment_at

    add_column :orders, :created_at, :datetime, null: false
    add_column :orders, :updated_at, :datetime, null: false
    add_column :orders, :payment_at, :datetime
  end
end

